package com.jmb.apiplatform.service;

import com.alibaba.fastjson.JSONArray;
import com.jmb.apiplatform.common.PageResult;
import com.jmb.apiplatform.exception.ValidException;
import com.jmb.apiplatform.pojo.ApiTestCaseExecuteLog;
import com.jmb.apiplatform.pojo.ApiTestCaseExecuteLogListTO;
import com.jmb.apiplatform.pojo.ApiTestCaseExecuteLogListVO;
import com.jmb.apiplatform.pojo.ApiTestCaseExecuteLogVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
* @author jinmengbo
* @description 针对表【api_test_case_execute_log】的数据库操作Service
* @createDate 2025-02-15 15:23:30
*/
public interface ApiTestCaseExecuteLogService  {
    @Transactional(rollbackFor = ValidException.class)
    ApiTestCaseExecuteLog saveExecuteLog(ApiTestCaseExecuteLog executeLogDO);
    PageResult<ApiTestCaseExecuteLogListVO> findExecuteList(ApiTestCaseExecuteLogListTO executeLogListTO);

    ApiTestCaseExecuteLogVO findExecute(Integer executeId);

    void modifyExecuteLog(ApiTestCaseExecuteLog executeLog);

    JSONArray caseExecuteLogChain(Integer executeId);

    List<ApiTestCaseExecuteLogListVO> findExecuteListAll(ApiTestCaseExecuteLogListTO executeLogListDTO);

}
